home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 003 / dbarc.arc / DBARC.PRG
Text File  |  1985-08-26  |  5KB  |  193 lines

  1. *
  2. SET HEADING OFF
  3. SET SAFETY OFF
  4. SET TALK OFF
  5.  
  6. * Program..: ARC.PRG  Ver 1.0
  7. * Author...: Jim Ray
  8. * Date.....: 08/26/85
  9. * Notice...: Copyright 1985, All Rights Reserved
  10. * Notes....: This program uses ARC430
  11. * Notes....: If you like this program send a donation of $10.00 to
  12. * Notes....: Balanced Comuter Systems
  13. * Notes....: PO Box 1429
  14. * Notes....: Tustin,Ca.  92681
  15. * Notes....: You can make any modifications you want in the program.
  16.  
  17. DO WHILE .T.
  18. CLEAR ALL
  19. CLEAR
  20. @  1, 0 SAY "========================================"
  21. @  1,40 SAY "========================================"
  22. @  2, 0 SAY "||"
  23. @  2,11 SAY "A R C   F I L E   U T I L I T Y  P R O G R A M  VER 1.1"
  24. @  2,78 SAY "||"
  25. @  3, 0 SAY "========================================"
  26. @  3,40 SAY "========================================"
  27. @  4, 0 SAY "||"
  28. @  4,78 SAY "||"
  29. @  5, 0 SAY "||"
  30. @  5,78 SAY "||"
  31. @  6, 0 SAY "||"
  32. @  6,78 SAY "||"
  33. @  7, 0 SAY "||"
  34. @  7,78 SAY "||"
  35. @  8, 0 SAY "||"
  36. @  8,78 SAY "||"
  37. @  9, 0 SAY "||"
  38. @  9,78 SAY "||"
  39. @ 10, 0 SAY "||"
  40. @ 10,78 SAY "||"
  41. @ 11, 0 SAY "||"
  42. @ 11,78 SAY "||"
  43. @ 12, 0 SAY "||"
  44. @ 12,78 SAY "||"
  45. @ 13, 0 SAY "||"
  46. @ 13,78 SAY "||"
  47. @ 14, 0 SAY "||"
  48. @ 14,78 SAY "||"
  49. @ 15, 0 SAY "||"
  50. @ 15,78 SAY "||"
  51. @ 16, 0 SAY "||"
  52. @ 16,78 SAY "||"
  53. @ 17, 0 SAY "========================================"
  54. @ 17,40 SAY "========================================"
  55. @  5,20 SAY " 0. exit"
  56. @  6,20 SAY " 1. Add files to archive"
  57. @  7,20 SAY " 2. Move file to archive"
  58. @  8,20 SAY " 3. Delete files from archive"
  59. @  9,20 SAY " 4. Extract files from archive"
  60. @ 10,20 SAY " 5. Run files from archive"
  61. @ 11,20 SAY " 6. Convert entry to new packing method"
  62. @ 12,20 SAY " 7. List files in archive"
  63. @ 13,20 SAY " 8. Test archive integrity"
  64. @ 14,20 SAY " 9. Instructions"
  65. STORE 10 TO selnum
  66. DO WHILE selnum < 0 .OR. selnum >  9
  67.    STORE " " TO sel
  68.    @ 17,33 SAY " select : : "
  69.    @ 17,42 GET sel PICTURE "#"
  70.    READ
  71.    STORE VAL(sel) TO selnum
  72. ENDDO
  73.  
  74. DO CASE
  75.    CASE selnum= 0
  76.       SET BELL ON
  77.       CLEAR ALL
  78.       RETURN
  79.    CASE selnum= 1
  80.     STORE "        " TO VAR
  81.     STORE "            " TO FILE
  82.     @ 19,10 SAY 'Input the archive name here: '
  83.     @ 19,40 GET VAR
  84.     @ 20,10 SAY 'Input file name here with EXT'
  85.     @ 20,40 GET FILE
  86.     READ
  87.     STORE TRIM(VAR) + ".ARC" TO ARC
  88.     CLEAR
  89.     RUN ARC430 -A &ARC &FILE
  90.     WAIT
  91.    CASE selnum= 2
  92.    *  Move file to archive
  93.     STORE "        " TO VAR
  94.     STORE "            " TO FILE
  95.     @ 19,10 SAY 'Input the archive name here: '
  96.     @ 19,40 GET VAR
  97.     @ 20,10 SAY 'Input file name here with EXT'
  98.     @ 20,40 GET FILE
  99.     READ
  100.     STORE TRIM(VAR) + ".ARC" TO ARC
  101.     CLEAR
  102.     RUN ARC430 -D &ARC &FILE
  103.     WAIT
  104.    CASE selnum= 3
  105.    *  Delete files from archive
  106.     STORE "        " TO VAR
  107.     STORE "            " TO FILE
  108.     @ 19,10 SAY 'Input the archive name here: '
  109.     @ 19,40 GET VAR
  110.     @ 20,10 SAY 'Input file name here with EXT'
  111.     @ 20,40 GET FILE
  112.     READ
  113.     STORE TRIM(VAR) + ".ARC" TO ARC
  114.     CLEAR
  115.     RUN ARC430 -D &ARC &FILE
  116.     WAIT
  117.    CASE selnum= 4
  118.    *  Extract files from archive
  119.     STORE "        " TO VAR
  120.     @ 19,10 SAY 'Input the archive name here: '
  121.     @ 19,40 GET VAR
  122.     READ
  123.     STORE TRIM(VAR) + ".ARC" TO ARC
  124.     CLEAR
  125.     RUN ARC430 -X &ARC
  126.     WAIT
  127.    CASE selnum= 5
  128.    *  Run files from archive
  129.     STORE "        " TO VAR
  130.     STORE "            " TO FILE
  131.     @ 19,10 SAY 'Input the archive name here: '
  132.     @ 19,40 GET VAR
  133.     @ 20,10 SAY 'Input file name here with EXT'
  134.     @ 20,40 GET FILE
  135.     READ
  136.     STORE TRIM(VAR) + ".ARC" TO ARC
  137.     CLEAR
  138.     RUN ARC430 -R &ARC &FILE
  139.     WAIT
  140.    CASE selnum= 6
  141.    *  Convert entry to new packing method
  142.     STORE "        " TO VAR
  143.     STORE "            " TO FILE
  144.     @ 19,10 SAY 'Input the archive name here: '
  145.     @ 19,40 GET VAR
  146.     @ 20,10 SAY 'Input file name here with EXT'
  147.     @ 20,40 GET FILE
  148.     READ
  149.     STORE TRIM(VAR) + ".ARC" TO ARC
  150.     CLEAR
  151.     RUN ARC430 -C &ARC &FILE
  152.     WAIT
  153.    CASE selnum= 7
  154.     STORE "        " TO VAR
  155.     @ 19,10 SAY 'Input the archive name here: '
  156.     @ 19,40 GET VAR
  157.     @ 20,10 SAY 'No extention is needed here'
  158.     READ
  159.     STORE TRIM(VAR) + ".ARC" TO ARC
  160.     CLEAR
  161.     RUN ARC430 -L &ARC
  162.     WAIT
  163.   CASE selnum= 8
  164.    *  Test archive integrity
  165.     STORE "        " TO VAR
  166.     @ 19,10 SAY 'Input the archive name here: '
  167.     @ 19,40 GET VAR
  168.     @ 20,10 SAY 'No extention is needed here'
  169.     READ
  170.     STORE TRIM(VAR) + ".ARC" TO ARC
  171.     CLEAR
  172.     RUN ARC430 -T &ARC
  173.     WAIT
  174.    CASE selnum= 9
  175. ? 'This program is written by Jim Ray of Balanced Computer Systems.'
  176. ? 'It is intended for the use of helping the user when using ARC430.'
  177. ? 'The program can be modified to the need of the user,but this program'
  178. ? 'can not be sold. I also will not be held responsible for any wierd'
  179. ? 'things that might happen when running this program. I have tested'
  180. ? 'it out and works great. If you feel like you have benifited from it,'
  181. ? 'you can send a $10.00 donation to PO BOX 1429  TUSTIN, CA. 92681.'
  182. ? 'This one program is the first but not the last of good dbase III'
  183. ? 'utiliy programs. I hope you get allot of use from it.'
  184. ? ' '
  185. ? 'If you have any problems with the commands, go into the system and'
  186. ? 'type ARC430 and this will list out the format needed. Also no EXT  '
  187. ? 'is needed with when putting in the file.arc.'
  188. WAIT
  189. ENDCASE
  190.  
  191. ENDDO T
  192.  
  193.